package cn.crc.model.base;

import java.io.Serializable;


/**
 * This is an object that contains data related to the blog_Content table.
 * Do not modify this class because it will be overwritten if the configuration file
 * related to this class is modified.
 *
 * @hibernate.class
 *  table="blog_Content"
 */

public abstract class BaseBlogContent  implements Serializable {

	public static String REF = "BlogContent";
	public static String PROP_LOG_MODIFY = "LogModify";
	public static String PROP_LOG_ISTOP = "LogIstop";
	public static String PROP_LOG_EDITTYPE = "LogEdittype";
	public static String PROP_LOG_UBBFLAGS = "LogUbbflags";
	public static String PROP_LOG_COMORDER = "LogComorder";
	public static String PROP_LOG_FROM = "LogFrom";
	public static String PROP_LOG_TITLE = "LogTitle";
	public static String PROP_LOG_DISCOMMENT = "LogDiscomment";
	public static String PROP_LOG_VIEWNUMS = "LogViewnums";
	public static String PROP_LOG_COMMNUMS = "LogCommnums";
	public static String PROP_LOG_WEATHER = "LogWeather";
	public static String PROP_LOG_POSTTIME = "LogPosttime";
	public static String PROP_LOG_ISDRAFT = "LogIsdraft";
	public static String PROP_LOG_INTRO = "LogIntro";
	public static String PROP_LOG_CATEID = "LogCateid";
	public static String PROP_LOG_MF = "LogMf";
	public static String PROP_LOG_CONTENT = "LogContent";
	public static String PROP_LOG_AUTHOR = "LogAuthor";
	public static String PROP_LOG_LEVEL = "LogLevel";
	public static String PROP_LOG_FROMURL = "LogFromurl";
	public static String PROP_LOG_ISSHOW = "LogIsshow";
	public static String PROP_LOG_QUOTE = "LogQuote";
	public static String PROP_LOG_TAG = "LogTag";
	public static String PROP_LOG_QUOTENUMS = "LogQuotenums";
	public static String PROP_ID = "Id";


	// constructors
	public BaseBlogContent () {
		initialize();		
	}

	//constructiors for all properties
	public BaseBlogContent(
		java.lang.String logModify,
		boolean logIstop,
		java.lang.Integer logEdittype,
		java.lang.String logUbbflags,
		boolean logComorder,
		java.lang.String logFrom,
		java.lang.String logTitle,
		boolean logDiscomment,
		java.lang.Integer logViewnums,
		java.lang.Integer logCommnums,
		java.lang.String logWeather,
		java.lang.String logPosttime,
		boolean logIsdraft,
		java.lang.String logIntro,
		java.lang.Integer logCateid,
		java.lang.String logMf,
		java.lang.String logContent,
		java.lang.String logAuthor,
		java.lang.String logLevel,
		java.lang.String logFromurl,
		boolean logIsshow,
		java.lang.String logQuote,
		java.lang.String logTag,
		java.lang.Integer logQuotenums,
		java.lang.String id){
		this.setLogModify(logModify);
		this.setLogIstop(logIstop);
		this.setLogEdittype(logEdittype);
		this.setLogUbbflags(logUbbflags);
		this.setLogComorder(logComorder);
		this.setLogFrom(logFrom);
		this.setLogTitle(logTitle);
		this.setLogDiscomment(logDiscomment);
		this.setLogViewnums(logViewnums);
		this.setLogCommnums(logCommnums);
		this.setLogWeather(logWeather);
		this.setLogPosttime(logPosttime);
		this.setLogIsdraft(logIsdraft);
		this.setLogIntro(logIntro);
		this.setLogCateid(logCateid);
		this.setLogMf(logMf);
		this.setLogContent(logContent);
		this.setLogAuthor(logAuthor);
		this.setLogLevel(logLevel);
		this.setLogFromurl(logFromurl);
		this.setLogIsshow(logIsshow);
		this.setLogQuote(logQuote);
		this.setLogTag(logTag);
		this.setLogQuotenums(logQuotenums);
		this.setId(id);
		initialize();		
	 }
	
	
	

	/**
	 * Constructor for primary key
	 */
	public BaseBlogContent (java.lang.String id) {
		this.setId(id);
		initialize();
	}

	protected void initialize () {}



	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.String id;

	// fields
	private java.lang.Integer logCateid;
	private java.lang.String logTitle;
	private java.lang.String logIntro;
	private java.lang.String logAuthor;
	private java.lang.String logModify;
	private java.lang.String logFrom;
	private java.lang.String logFromurl;
	private java.lang.String logQuote;
	private java.lang.String logContent;
	private java.lang.String logPosttime;
	private java.lang.Integer logCommnums;
	private java.lang.Integer logViewnums;
	private java.lang.Integer logQuotenums;
	private boolean logIsshow;
	private boolean logDiscomment;
	private boolean logIstop;
	private java.lang.String logWeather;
	private java.lang.String logLevel;
	private java.lang.Integer logEdittype;
	private boolean logComorder;
	private java.lang.String logMf;
	private java.lang.String logUbbflags;
	private boolean logIsdraft;
	private java.lang.String logTag;



	/**
	 * Return the unique identifier of this class
     * @hibernate.id
     *  generator-class="native"
     *  column="log_ID"
     */
	public java.lang.String getId () {
		return id;
	}

	/**
	 * Set the unique identifier of this class
	 * @param id the new ID
	 */
	public void setId (java.lang.String id) {
		this.id = id;
		this.hashCode = Integer.MIN_VALUE;
	}




	/**
	 * Return the value associated with the column: log_CateID
	 */
	public java.lang.Integer getLogCateid () {
		return logCateid;
	}

	/**
	 * Set the value related to the column: log_CateID
	 * @param logCateid the log_CateID value
	 */
	public void setLogCateid (java.lang.Integer logCateid) {
		this.logCateid = logCateid;
	}



	/**
	 * Return the value associated with the column: log_Title
	 */
	public java.lang.String getLogTitle () {
		return logTitle;
	}

	/**
	 * Set the value related to the column: log_Title
	 * @param logTitle the log_Title value
	 */
	public void setLogTitle (java.lang.String logTitle) {
		this.logTitle = logTitle;
	}



	/**
	 * Return the value associated with the column: log_Intro
	 */
	public java.lang.String getLogIntro () {
		return logIntro;
	}

	/**
	 * Set the value related to the column: log_Intro
	 * @param logIntro the log_Intro value
	 */
	public void setLogIntro (java.lang.String logIntro) {
		this.logIntro = logIntro;
	}



	/**
	 * Return the value associated with the column: log_Author
	 */
	public java.lang.String getLogAuthor () {
		return logAuthor;
	}

	/**
	 * Set the value related to the column: log_Author
	 * @param logAuthor the log_Author value
	 */
	public void setLogAuthor (java.lang.String logAuthor) {
		this.logAuthor = logAuthor;
	}



	/**
	 * Return the value associated with the column: log_Modify
	 */
	public java.lang.String getLogModify () {
		return logModify;
	}

	/**
	 * Set the value related to the column: log_Modify
	 * @param logModify the log_Modify value
	 */
	public void setLogModify (java.lang.String logModify) {
		this.logModify = logModify;
	}



	/**
	 * Return the value associated with the column: log_From
	 */
	public java.lang.String getLogFrom () {
		return logFrom;
	}

	/**
	 * Set the value related to the column: log_From
	 * @param logFrom the log_From value
	 */
	public void setLogFrom (java.lang.String logFrom) {
		this.logFrom = logFrom;
	}



	/**
	 * Return the value associated with the column: log_FromUrl
	 */
	public java.lang.String getLogFromurl () {
		return logFromurl;
	}

	/**
	 * Set the value related to the column: log_FromUrl
	 * @param logFromurl the log_FromUrl value
	 */
	public void setLogFromurl (java.lang.String logFromurl) {
		this.logFromurl = logFromurl;
	}



	/**
	 * Return the value associated with the column: log_Quote
	 */
	public java.lang.String getLogQuote () {
		return logQuote;
	}

	/**
	 * Set the value related to the column: log_Quote
	 * @param logQuote the log_Quote value
	 */
	public void setLogQuote (java.lang.String logQuote) {
		this.logQuote = logQuote;
	}



	/**
	 * Return the value associated with the column: log_Content
	 */
	public java.lang.String getLogContent () {
		return logContent;
	}

	/**
	 * Set the value related to the column: log_Content
	 * @param logContent the log_Content value
	 */
	public void setLogContent (java.lang.String logContent) {
		this.logContent = logContent;
	}



	/**
	 * Return the value associated with the column: log_PostTime
	 */
	public java.lang.String getLogPosttime () {
		return logPosttime;
	}

	/**
	 * Set the value related to the column: log_PostTime
	 * @param logPosttime the log_PostTime value
	 */
	public void setLogPosttime (java.lang.String logPosttime) {
		this.logPosttime = logPosttime;
	}



	/**
	 * Return the value associated with the column: log_CommNums
	 */
	public java.lang.Integer getLogCommnums () {
		return logCommnums;
	}

	/**
	 * Set the value related to the column: log_CommNums
	 * @param logCommnums the log_CommNums value
	 */
	public void setLogCommnums (java.lang.Integer logCommnums) {
		this.logCommnums = logCommnums;
	}



	/**
	 * Return the value associated with the column: log_ViewNums
	 */
	public java.lang.Integer getLogViewnums () {
		return logViewnums;
	}

	/**
	 * Set the value related to the column: log_ViewNums
	 * @param logViewnums the log_ViewNums value
	 */
	public void setLogViewnums (java.lang.Integer logViewnums) {
		this.logViewnums = logViewnums;
	}



	/**
	 * Return the value associated with the column: log_QuoteNums
	 */
	public java.lang.Integer getLogQuotenums () {
		return logQuotenums;
	}

	/**
	 * Set the value related to the column: log_QuoteNums
	 * @param logQuotenums the log_QuoteNums value
	 */
	public void setLogQuotenums (java.lang.Integer logQuotenums) {
		this.logQuotenums = logQuotenums;
	}



	/**
	 * Return the value associated with the column: log_IsShow
	 */
	public boolean isLogIsshow () {
		return logIsshow;
	}

	/**
	 * Set the value related to the column: log_IsShow
	 * @param logIsshow the log_IsShow value
	 */
	public void setLogIsshow (boolean logIsshow) {
		this.logIsshow = logIsshow;
	}



	/**
	 * Return the value associated with the column: log_DisComment
	 */
	public boolean isLogDiscomment () {
		return logDiscomment;
	}

	/**
	 * Set the value related to the column: log_DisComment
	 * @param logDiscomment the log_DisComment value
	 */
	public void setLogDiscomment (boolean logDiscomment) {
		this.logDiscomment = logDiscomment;
	}



	/**
	 * Return the value associated with the column: log_IsTop
	 */
	public boolean isLogIstop () {
		return logIstop;
	}

	/**
	 * Set the value related to the column: log_IsTop
	 * @param logIstop the log_IsTop value
	 */
	public void setLogIstop (boolean logIstop) {
		this.logIstop = logIstop;
	}



	/**
	 * Return the value associated with the column: log_weather
	 */
	public java.lang.String getLogWeather () {
		return logWeather;
	}

	/**
	 * Set the value related to the column: log_weather
	 * @param logWeather the log_weather value
	 */
	public void setLogWeather (java.lang.String logWeather) {
		this.logWeather = logWeather;
	}



	/**
	 * Return the value associated with the column: log_level
	 */
	public java.lang.String getLogLevel () {
		return logLevel;
	}

	/**
	 * Set the value related to the column: log_level
	 * @param logLevel the log_level value
	 */
	public void setLogLevel (java.lang.String logLevel) {
		this.logLevel = logLevel;
	}



	/**
	 * Return the value associated with the column: log_edittype
	 */
	public java.lang.Integer getLogEdittype () {
		return logEdittype;
	}

	/**
	 * Set the value related to the column: log_edittype
	 * @param logEdittype the log_edittype value
	 */
	public void setLogEdittype (java.lang.Integer logEdittype) {
		this.logEdittype = logEdittype;
	}



	/**
	 * Return the value associated with the column: log_comorder
	 */
	public boolean isLogComorder () {
		return logComorder;
	}

	/**
	 * Set the value related to the column: log_comorder
	 * @param logComorder the log_comorder value
	 */
	public void setLogComorder (boolean logComorder) {
		this.logComorder = logComorder;
	}



	/**
	 * Return the value associated with the column: log_mf
	 */
	public java.lang.String getLogMf () {
		return logMf;
	}

	/**
	 * Set the value related to the column: log_mf
	 * @param logMf the log_mf value
	 */
	public void setLogMf (java.lang.String logMf) {
		this.logMf = logMf;
	}



	/**
	 * Return the value associated with the column: log_ubbFlags
	 */
	public java.lang.String getLogUbbflags () {
		return logUbbflags;
	}

	/**
	 * Set the value related to the column: log_ubbFlags
	 * @param logUbbflags the log_ubbFlags value
	 */
	public void setLogUbbflags (java.lang.String logUbbflags) {
		this.logUbbflags = logUbbflags;
	}



	/**
	 * Return the value associated with the column: log_IsDraft
	 */
	public boolean isLogIsdraft () {
		return logIsdraft;
	}

	/**
	 * Set the value related to the column: log_IsDraft
	 * @param logIsdraft the log_IsDraft value
	 */
	public void setLogIsdraft (boolean logIsdraft) {
		this.logIsdraft = logIsdraft;
	}



	/**
	 * Return the value associated with the column: log_tag
	 */
	public java.lang.String getLogTag () {
		return logTag;
	}

	/**
	 * Set the value related to the column: log_tag
	 * @param logTag the log_tag value
	 */
	public void setLogTag (java.lang.String logTag) {
		this.logTag = logTag;
	}




	public boolean equals (Object obj) {
		if (null == obj) return false;
		if (!(obj instanceof cn.crc.model.BlogContent)) return false;
		else {
			cn.crc.model.BlogContent blogContent = (cn.crc.model.BlogContent) obj;
			if (null == this.getId() || null == blogContent.getId()) return false;
			else return (this.getId().equals(blogContent.getId()));
		}
	}

	public int hashCode () {
		if (Integer.MIN_VALUE == this.hashCode) {
			if (null == this.getId()) return super.hashCode();
			else {
				String hashStr = this.getClass().getName() + ":" + this.getId().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}


	public String toString () {
		return super.toString();
	}


}